package main

import (
	"handler"
	"net/http"
	"time"
	"log"
)

func main() {
	ss := &http.Server{
		Addr:           ":10443",
		Handler:        &handler.Myhandler{},
		ReadTimeout:    10 * time.Second,
		WriteTimeout:   10 * time.Second,
		MaxHeaderBytes: 1 << 20,
	}
	log.Fatal(ss.ListenAndServeTLS("D:/JetBrains/GoglandProjects/betago/src/cacert.pem", "D:/JetBrains/GoglandProjects/betago/src/privkey.pem"))//证书，私钥文件
}
